package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.IflightOrderInvoiceMapper;
import com.ktgj.flight.domain.IflightOrderInvoice;
import com.ktgj.flight.service.IIflightOrderInvoiceService;

/**
 * 国际机票订单发票信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-31
 */
@Service
public class IflightOrderInvoiceServiceImpl implements IIflightOrderInvoiceService 
{
    @Autowired
    private IflightOrderInvoiceMapper iflightOrderInvoiceMapper;

    /**
     * 查询国际机票订单发票信息
     * 
     * @param iflightOrderInvoiceId 国际机票订单发票信息ID
     * @return 国际机票订单发票信息
     */
    @Override
    public IflightOrderInvoice selectIflightOrderInvoiceById(Long iflightOrderInvoiceId)
    {
        return iflightOrderInvoiceMapper.selectIflightOrderInvoiceById(iflightOrderInvoiceId);
    }

    /**
     * 查询国际机票订单发票信息列表
     * 
     * @param iflightOrderInvoice 国际机票订单发票信息
     * @return 国际机票订单发票信息
     */
    @Override
    public List<IflightOrderInvoice> selectIflightOrderInvoiceList(IflightOrderInvoice iflightOrderInvoice)
    {
        return iflightOrderInvoiceMapper.selectIflightOrderInvoiceList(iflightOrderInvoice);
    }

    /**
     * 新增国际机票订单发票信息
     * 
     * @param iflightOrderInvoice 国际机票订单发票信息
     * @return 结果
     */
    @Override
    public int insertIflightOrderInvoice(IflightOrderInvoice iflightOrderInvoice)
    {
        return iflightOrderInvoiceMapper.insertIflightOrderInvoice(iflightOrderInvoice);
    }

    /**
     * 修改国际机票订单发票信息
     * 
     * @param iflightOrderInvoice 国际机票订单发票信息
     * @return 结果
     */
    @Override
    public int updateIflightOrderInvoice(IflightOrderInvoice iflightOrderInvoice)
    {
        return iflightOrderInvoiceMapper.updateIflightOrderInvoice(iflightOrderInvoice);
    }

    /**
     * 批量删除国际机票订单发票信息
     * 
     * @param iflightOrderInvoiceIds 需要删除的国际机票订单发票信息ID
     * @return 结果
     */
    @Override
    public int deleteIflightOrderInvoiceByIds(Long[] iflightOrderInvoiceIds)
    {
        return iflightOrderInvoiceMapper.deleteIflightOrderInvoiceByIds(iflightOrderInvoiceIds);
    }

    /**
     * 删除国际机票订单发票信息信息
     * 
     * @param iflightOrderInvoiceId 国际机票订单发票信息ID
     * @return 结果
     */
    @Override
    public int deleteIflightOrderInvoiceById(Long iflightOrderInvoiceId)
    {
        return iflightOrderInvoiceMapper.deleteIflightOrderInvoiceById(iflightOrderInvoiceId);
    }
}
